<!DOCTYPE html>
<html>
 <head> 
  <meta charset="utf-8" /> 
  <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no" /> 
  <title>条形码生成器</title> 
  <script type="text/javascript" src="http://cdn.bootcss.com/jsbarcode/3.11.0/barcodes/JsBarcode.code128.min.js"></script> 
 </head> 
 <body> 
  <svg id="svgcode"></svg> 
  <!-- or --> 
  <canvas id="canvascode"></canvas> 
  <!-- or --> 
  <img id="imgcode" /> 
  <script>  
				JsBarcode("#svgcode", "Hello world!")
				JsBarcode("#canvascode", "Hello world!")
				JsBarcode("#imgcode", "Hello world!")
  </script> 
 </body>
</html>